package com.woniuxy.system.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.util.List;

/**
 * <p>
 * 考核指标
 * </p>
 *
 * @author woniuxy
 * @since 2022-06-01
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="AssessmentIndicators对象", description="考核指标")
public class AssessmentIndicators implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.ASSIGN_ID)
    private Long id;

    @ApiModelProperty(value = "指标名称")
    private String name;

    @ApiModelProperty(value = "操作记录id")
    private Long recordId;

    @ApiModelProperty(value="中间表")
    @TableField(exist = false)
    private IndiType indiType;

    @ApiModelProperty(value="记录表")
    @TableField(exist = false)
    private DataRecord dataRecord;

    @ApiModelProperty(value="包含考核项")
    @TableField(exist = false)
    private List<AssessmentItems> children;
}
